frequency of characters in string